//
//  OYZartTableViewCell.m
//  开心一刻
//
//  Created by 欧阳政 on 16/4/13.
//  Copyright © 2016年 刘洋. All rights reserved.
//

#import "OYZartTableViewCell.h"
#import "UIImageView+WebCache.h"
@implementation OYZartTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        _imageview1 = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, KedWidth, KedWidth*450/750)];
        [self.contentView addSubview:_imageview1];
        _label2 = [[UILabel alloc] initWithFrame:CGRectMake(0, _imageview1.frame.size.height/2 + 20, KedWidth, 25)];
       
        _label2.textAlignment = NSTextAlignmentCenter;
        _label2.textColor = [UIColor whiteColor];
        [_imageview1 addSubview:_label2];
        
    }
    return self;
}
- (void)fuzhimodel:(OYZartViewModel *)model
{
    [_imageview1 sd_setImageWithURL:[NSURL URLWithString:model.topicPic]];
    _label2.text = [NSString stringWithFormat:@"%@  |  %ld",model.topicLabel,model.viewerNum];
    _label2.font = [UIFont systemFontOfSize:14];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
